package com.alisls.shequtao.service.goods.service;

import com.alisls.shequtao.common.model.result.PageResult;
import com.alisls.shequtao.common.service.BaseService;
import com.alisls.shequtao.service.goods.dto.SpecGroupDTO;
import com.alisls.shequtao.service.goods.entity.SpecGroupDO;
import com.alisls.shequtao.service.goods.query.SpecGroupPageQuery;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 商品规格服务
 *
 * @author Ke Wang
 */
public interface SpecGroupService extends IService<SpecGroupDO>, BaseService<SpecGroupDO, SpecGroupDTO> {

    List<SpecGroupDTO> listSpecGroupsByCategoryId(Long categoryId);

    SpecGroupDTO saveSpecGroupWithCategory(SpecGroupDTO specGroupDTO);

    PageResult<SpecGroupDTO> pagingSpecGroupsByCategoryId(SpecGroupPageQuery specGroupPageQuery);

}
